package photobox.photo

import photobox.account.User
import photobox.photo.Photo

class PhotoComment {


    String comment
    Date dateCreated
    Integer isRecommend = 0//是否推荐 1: 推荐 0: 不推荐

    static belongsTo = [user:User,photo:Photo]

    static mapping = {
        table 'pht_photo_comment'
    }
    static constraints = {
        comment size: 0..300, nullable: true
        isRecommend inList: [0, 1]

    }
}
